package TransactionFactory

import (
	"PaySalary/TransactionImplementation"
	"reflect"
)

type TransactionFactory struct {
	Type map[string]reflect.Type
}

// CreateModelIM 反射返回一个值
func (tf* TransactionFactory) CreateModelIM(className string) reflect.Value {
	return reflect.New(tf.Type[className])
}

func (tf* TransactionFactory) init() {
	tf.Type["AddCommissionEmployee"] = reflect.TypeOf(TransactionImplementation.AddCommissionEmployee{})
}


